<table cellspacing="0" cellpadding="0" class="goods_body">
    <tbody>
    <volist name="cates" id="cate">
        <tr>
            <td style="width:70px;text-align: center;">{$cate.id}</td>
            <td style="width:80px;text-align: center;">
                <if condition="$cate['img'] neq ''">
                    <img width="50" height="50" src="{$cate.img}"/>
                    <else />
                    <img width="50" height="50" src="./Uploads/good/no.png"/>
                </if>
            </td>
            <td style="width:150px;text-align: center;">{$cate.c_name}</td>
            <td style="width:100px;text-align: center;">
                <button class="select_cate_btn" data-id="{$cate.id}" data-cname="{$cate.c_name}">选择</button>
            </td>
        </tr>
    </volist>
    </tbody>
</table>
{$page}
<script type="text/javascript">
    $(document).ready(function(){
        $(".pagination a").click(function(){
            cur_page = $(this).data('p');
            ajax_getcate_table(cur_page);
        });
    });
</script>